opensubd level

Autodesk Maya (Plugin developed by JimStar)

Moderator: JimStar

Post Reply
User avatar
Tharso
Licensed Customer
Posts: 281
Joined: Mon Apr 05, 2010 3:11 pm
Location: Brasil
Contact:

Hi!

How can I sync the 3 shortcut in maya with the opensubd level in octane?

Tks
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

Several ways to do this:

1/ For a non-synchronized process, use just a script to batch update octane openSubdiv attributes based on Smooth preview levels when you need that.

2/ One way is to add for each mesh an expression which links maya smooth preview shape attributes to the Octane opensusubdiv level attribute.
If you only want this on a subset of objects this is probably the best method.
But if needed on all mesh in the scene, each time you create a new object you still need to add an expression manually or by script, or can be done automatically in a script job.

3/ Or you can Hack two mel procedures:
changeSmoothingLevelPoly found in MayaXXXX/scripts/others/changeSmoothingLevel.mel
setDisplaySmoothness found in MayaXXXX/scripts/others/setDisplaySmoothness.mel
you can modify both scripts to update octane openSubdiv at the same time as SmoothPreview, and put this modified scripts for example in user/Maya/20XX/Script/
Take care this might slow down the interactive switching of smoothPreview level.

4/ The best would be to have an option for the the plugin in render settings "use Maya Smooth Preview levels for Octane Opensubdiv" and then the OpenSubdiv levels would be set only at render time...


Also keep in mind that Maya Subdiv Crease is still not supported by the plugin anyway...
but smoothing and Maya Crease are supported by Standalone if geometry is exported as Maya Builtin Alembic Cache.
Pascal ANDRE
itsallgoode9
Licensed Customer
Posts: 894
Joined: Thu Apr 03, 2014 9:04 am
Location: New York City
Contact:

I agree that it would be great to have the option built into octane to have it respect the maya smoothing levels!
calus
Licensed Customer
Posts: 1308
Joined: Sat May 22, 2010 9:31 am
Location: Paris

In the meantime here is the script using the method 2 to sync Maya Smooth Mesh Preview and Octane Subdiv. :)
viewtopic.php?f=126&t=59009
Pascal ANDRE
itsallgoode9
Licensed Customer
Posts: 894
Joined: Thu Apr 03, 2014 9:04 am
Location: New York City
Contact:

calus wrote:In the meantime here is the script using the method 2 to sync Maya Smooth Mesh Preview and Octane Subdiv. :)
viewtopic.php?f=126&t=59009
Awesome, thanks Calus!!!!
User avatar
Tharso
Licensed Customer
Posts: 281
Joined: Mon Apr 05, 2010 3:11 pm
Location: Brasil
Contact:

Thank you so much again !!!
User avatar
blackshore
Licensed Customer
Posts: 117
Joined: Wed Jul 31, 2013 6:22 pm

calus wrote: Also keep in mind that Maya Subdiv Crease is still not supported by the plugin anyway...
but smoothing and Maya Crease are supported by Standalone if geometry is exported as Maya Builtin Alembic Cache.
Any updates on Crease?
itsallgoode9
Licensed Customer
Posts: 894
Joined: Thu Apr 03, 2014 9:04 am
Location: New York City
Contact:

calus wrote:Several ways to do this:

4/ The best would be to have an option for the the plugin in render settings "use Maya Smooth Preview levels for Octane Opensubdiv" and then the OpenSubdiv levels would be set only at render time...
This is definitely how it should be implemented!
Post Reply

Return to “Autodesk Maya”