Trying to write script to automate action

Trying to write script to automate action

Davissimo
Explorer Explorer
245 Views
1 Reply
Message 1 of 2

Trying to write script to automate action

Davissimo
Explorer
Explorer

So I have an animation that uses the Modify>convert>texture to geometry tool to create a series of cut-out dancer shapes. I want to make a script to select each plane in a series and perform the Texture-to-Geometry action with the next image in a sequence.  
This is what I tried writing but I get a syntax error. 

Capture.JPG
when I use the lines individually it works but the texture comes out green instead of making a new texture like the convert tool is supposed to 

0 Likes
246 Views
1 Reply
Reply (1)
Message 2 of 2

FirespriteNate
Advocate
Advocate

I don't have any time to help with the actual script, but the reason the code above doesn't work is that you don't have a ; at the end of every line of code. You don't need it if you are just executing a single line of code, but you need it to run a block of code, which is why you get the behaviour you describe.

Good luck with the rest of it!

0 Likes