Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Softimage® / XSI SDK / Made a button for python script, but its opening multiple ppgs, help!
  RSS 2.0 ATOM  

Made a button for python script, but its opening multiple ppgs, help!
Rate this thread
 
30174
 
Permlink of this thread  
avatar
  • QuentinB
  • Posted: 21 March 2009 12:45 PM
  • Location: New York
  • Total Posts: 57
  • Joined: 07 July 2008 04:39 PM

I have finished doing the spacertool script in python so I decided to put it on a button in a customtoolbar, but when I use the script from a button it opens a ppg for each duplicate thats being placed along my curve. So if I make 50 duplicates a long a curve it will open 50 seperate ppgs, but if i run it from the script editor this doesnt happen. Any one have a suggestion about how to stop this?



Falun Dafa
A meditative practice for the mind and body
http://www.falundafa.org

Replies: 0
avatar

Use the object model for creating new objects.
-Or-
Turn off autoinspect while your script runs:
SetValue("preferences.Interaction.autoinspect", false, null);



Replies: 0
avatar
  • QuentinB
  • Posted: 22 March 2009 06:46 AM

Thanks for the help! I will keep those in mind, I wrote Charbel and he suggested I use siApplycns in the script because it doesn’t open the ppg while executing. But in the future I will what you suggested to keep in mind as solutions to other things ^_^

Thanks!!



Falun Dafa
A meditative practice for the mind and body
http://www.falundafa.org

Replies: 0