is it possible using Python to do
right click,
copy parameter, and
do any of the following
paste copied values
paste copied expressions
then set that as paste copied relative reference
and so on?
or do i manually have to do a string, with
`ch(“……./…/”)
thanks guys.
channel reference with python
16091 8 4-
- pelos
- Member
- 624 posts
- Joined: Aug. 2008
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
-
- JordanWalsh
- Member
- 145 posts
- Joined: Feb. 2012
- Offline
This isnt exactly the same as described in the top post as now the parm shares the same object (change either and both change) rather than just one parm referencing the others value.
Any way to do this so it has the exact functionality of the paste references in the right click menu?
I have found using parm.set('`chs“/out/mantra/vm_picture”`') dosent work that well if there is already a value in the parm.. seems to set the string but not the expression, but there is no expression in there???… dont really understand.
Any way to do this so it has the exact functionality of the paste references in the right click menu?
I have found using parm.set('`chs“/out/mantra/vm_picture”`') dosent work that well if there is already a value in the parm.. seems to set the string but not the expression, but there is no expression in there???… dont really understand.
-
- pelos
- Member
- 624 posts
- Joined: Aug. 2008
- Offline
-
- edward
- Member
- 8081 posts
- Joined: July 2005
- Offline
JordanWalsh
This isnt exactly the same as described in the top post as now the parm shares the same object (change either and both change) rather than just one parm referencing the others value.
I'm pretty sure you would get exactly the same behaviour as if you made the channel reference expression manually.
-
- pelos
- Member
- 624 posts
- Joined: Aug. 2008
- Offline
-
- graham
- Member
- 1926 posts
- Joined: Nov. 2006
- Offline
-
- russelloyd
- Member
- 3 posts
- Joined: Oct. 2013
- Offline
JordanWalsh is right. It's not the same. I just tried using the method described by graham and in addition to making the connection as desired it also created a channel reference in p2 back to itself. Which as you can imagine is causing a few issues.
Just thought you'd like to know.
PS. Running v12.5.427
Just thought you'd like to know.
PS. Running v12.5.427
-
- q369894
- Member
- 1 posts
- Joined: Oct. 2018
- Offline
-
- Quick Links



