Nico_be Posted May 19, 2017 Share Posted May 19, 2017 Hello, I need a new node to finish a marionette script. i need to enable Alpha Channel mask on texture. I've found "CreateImageMaskFromAlphaChannel" here : http://developer.vectorworks.net/index.php?title=VCOM:VectorWorks:ISDK::CreateImageMaskFromAlphaChannel I think it's appropriate. But i don't know yet how to create a node with this parameters. is there somebody could help me? Quote Link to comment
Marionette Maven Marissa Farrell Posted May 19, 2017 Marionette Maven Share Posted May 19, 2017 Hi @Jab_be! Unfortunately, the link you provided won't be of any help. Marionette uses Python code, and what you're referencing unfortunately is in a different language. I'll check with some people here in the office once they get in (I, of course, am an early bird) to see if we have anything in Vectorscript that we can use to accomplish this task, but I'm not sure that we do at this time. Quote Link to comment
Nico_be Posted May 19, 2017 Author Share Posted May 19, 2017 Thanks Marissa ! Ok, it's the first time i'm playing with marionette.. Or, if it's easier, maybe could you write a script instead? I can imagine runing the script after the marionette to apply alpha channel to All texture in the file? Image for alpha channel is the same as the texture. Quote Link to comment
AlanW Posted May 19, 2017 Share Posted May 19, 2017 @Jab_be Not sure if you need to do this because if you set up[ your texture correctly with transparent background you get the transparency you want. HTH Let me know it his is not want you are after Image Prop_002 v2017.vwx Quote Link to comment
Nico_be Posted May 19, 2017 Author Share Posted May 19, 2017 @Alan Woodwellyes you are right, it's what i do generally. But this time i want to import 100+ texture on the fly with the marionette. Everything is ok exept the transparency... And if i've to modify each texture manyally, it will take a loooong time. Quote Link to comment
AlanW Posted May 19, 2017 Share Posted May 19, 2017 Ok understand I will look a bit tonight but I wlil be on hols in Europe for the next 5 weeks without computer but hopefully someone will solve it by then. Quote Link to comment
Nico_be Posted May 19, 2017 Author Share Posted May 19, 2017 Thank you Alan ! Yes i Hope too, it's the last detail i need to achieve the marionette. And.. Welcome in Europe ! :-) Quote Link to comment
Nico_be Posted May 22, 2017 Author Share Posted May 22, 2017 Hello, Nobody can help me ? Quote Link to comment
AlanW Posted May 23, 2017 Share Posted May 23, 2017 (edited) There is a code in Vectorworks Developer giving a code for the shader and the image mask that is (may) be used to create the transparent mask may be (_ImageMask = 19) Still need to get a node to import all your images. Sorry can't help till I get home later in June. Edited May 23, 2017 by Alan Woodwell 1 Quote Link to comment
Pat Stanford Posted May 23, 2017 Share Posted May 23, 2017 There is nothing in the scripting (not SDK) documentation that talks about alpha channels. How would you do what you are asking for manually in VW? If you can tell us that perhaps we can figure out how to script it. Quote Link to comment
Nico_be Posted May 23, 2017 Author Share Posted May 23, 2017 (edited) @Pat Stanford When we edit a texture, in the field "Transparency" we can choose "Mask" and then we have a windows to choose which mask to use (image, greyscale, mask, color,....). We can choose image or (i don't know exact name in english because my version is French but it's the second radio button "same matérial as texture?" And then Third radio button "alpha channel". It's what i want to do : A script to convert ALL textures in the files to add automaticaly it's own alpha channel mask. Edited May 23, 2017 by Jab_be Quote Link to comment
Nico_be Posted May 23, 2017 Author Share Posted May 23, 2017 @Alan Woodwell yes Alan, This apply a Mask in transparency field of texture. But, only"mask", without any other specification. Quote Link to comment
Nico_be Posted June 9, 2017 Author Share Posted June 9, 2017 Hello, Little 'up' to know how to finnish the script... Reminder : On 23/05/2017 at 1:51 PM, Jab_be said: When we edit a texture, in the field "Transparency" we can choose "Mask" and then we have a windows to choose which mask to use (image, greyscale, mask, color,....). We can choose image or (i don't know exact name in english because my version is French but it's the second radio button "same matérial as texture?" And then Third radio button "alpha channel". It's what i want to do : A script to convert ALL textures in the files to add automaticaly it's own alpha channel mask. Quote Link to comment
Pat Stanford Posted June 9, 2017 Share Posted June 9, 2017 I don't think this can be done from a script or a Marionette node (which is effectively a Python script) as the necessary calls are not exposed to the scripting language. Sorry. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.