Jump to content

Example of a Script used with a Saved View...


Recommended Posts

Example of a Script used with a Saved View...

 

In the Edit Saved View there is an Edit Script… button

Question for You to answer:
    1. ¿ Does someone have an example of a simple script that is used with a Saved View ?
    2. Could a Script be written to change the Render Mode & Options with the desired Saved View ?

 

Suggestions are always appreciated

 

Peter

Link to comment

Render Mode (and options) appear to be already saved as part of the view as long as you check the correct box when you define the View. They are recalled when you active the view.

 

So I don't know what a script would gain you for that.  

 

I don't use scripts as part of saved views.  One thing that might be a reason to use it would be if you wanted to have a view that showed light objects in a rendered view and another that did not show the lights in a rendered view.

 

a single line of code in the Script of the Saved view would do this.

 

SetPrefInt(61,0);  {this will show light objects in rendered 3D views}

 

SetPrefInt(61,1); {this will show light objects only in Wireframe views}

 

If you think of other things that would be useful in the script I will be happy to help you figure out how to make them work.

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...