Syncronizing variants from script not working

Syncronizing variants from script not working

Anonymous
Not applicable
984 Views
5 Replies
Message 1 of 6

Syncronizing variants from script not working

Anonymous
Not applicable

Dear VRED community,

 

i am working on a scene with two workstations connected through the connector. everything is fine, except that variants only get synced if i doubleclick them in the GUI. if i run the command "selectVariantSet("XXX", false)", only the variant set on the machine running this script gets activated.

 

is there a possibility to select variant sets from script and get them synchronized?

 

thanks and best regards,

S.

0 Likes
985 Views
5 Replies
Replies (5)
Message 2 of 6

sinje_thiedemann
Autodesk
Autodesk

Hi,

 

which version are you using?

There was a bug that caused exactly the issue that you describe.

It was fixed in 2017 SP2 and 2017 SR1.

 

Best regards

Sinje

0 Likes
Message 3 of 6

Anonymous
Not applicable

hi,

 

i was using 2017 SR1. I'll test it with 2018 and will tell you if it works or not. Thanks for the help!

 

BR

0 Likes
Message 4 of 6

Anonymous
Not applicable

As far as I know, this doesn't work. Even in 2018. Several scene changes you do via script will not be synchronized by the connector.

0 Likes
Message 5 of 6

sinje_thiedemann
Autodesk
Autodesk

Hi,

I just found out that the python command needs to be passed to executePython (see vrScript in Python doc). It is then transferred to connected VREDs.

 

For example:

 

executePython('selectVariantSet("Set1")')

 

Does this work for you? (You still need to use at least version 2017 SR1 or 2017 SP2.)

 

Best regards

Sinje

0 Likes
Message 6 of 6

Anonymous
Not applicable

Yes, here it works with VRED 2017.2

Thank you.

0 Likes