Jump to content

Is there a way to custom reset plug-ins?


JMR

Recommended Posts

Hi all,

 

I needed to reset my space objects in order to show changed custom data in the tags.

 

It takes a long time to reset everything, is there a way to reset only one type of objects? As in select similar - space object - reset plug-ins

 

Thanks

 

Link to comment
  • Marionette Maven

You could create a script in your Resource Manager (set the language to Python Script from the drop down) and place this code in it:

def ResetThem(h):
	vs.ResetObject(h)

vs.ForEachObject( ResetThem, "SEL = True" );

This script will reset all selected objects.

 

Another option is to create a set of scripts that reset objects based on criteria, for example, the following script will reset all Space objects:

def ResetThem(h):
	vs.ResetObject(h)

vs.ForEachObject( ResetThem, "((PON='Space'))" )

 

You can also add these scripts as menu commands using the Plug In Manager.

  • Like 1
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...