I've been trying to set up a script that can swap out the textures of the shapes inside a file as well as the styles. However I'm having trouble finding what field or function can return/edit these values.
I've looked through the documentation for mesh shape and style objects but not turned up anything relevant. Most of the values I can see are just looking for colour values instead of accepting paths to a texture. I saw some references to the effects field, but nothing that would return the information related to the effects in a way that could be processed and edited for my needs.
Does anyone know how to go about this, or what I might be missing?
Script access to image textures of shapes/styles
Moderators: Víctor Paredes, Belgarath, slowtiger
- synthsin75
- Posts: 10253
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Script access to image textures of shapes/styles
I don't think I've ever used these myself, but here's a start:
http://mohoscripting.com/index.php?show ... ct=texture
http://mohoscripting.com/index.php?show ... ct=texture
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Script access to image textures of shapes/styles
Yeah, I was trying to use those but am just getting blank strings.
I've used it both on layers where the shapes have styles applied and ones with shapes that just had the textures applied to that shape specifically.
I also tried the fBrushName value on the associated Style objects just in case, but I just got nil results for the fBrushName value.
I've used it both on layers where the shapes have styles applied and ones with shapes that just had the textures applied to that shape specifically.
I also tried the fBrushName value on the associated Style objects just in case, but I just got nil results for the fBrushName value.